<template>
  <div>
    <button @click="openA">打开窗口a</button>
    <button @click="openB">打开窗口b</button>
    这是设置页面
    <router-view></router-view>
  </div>
</template>

<script>
import { windowCreate } from "@/utils/win";
export default {
  methods: {
    openA() {
      windowCreate({
        title: "管理页面",
        route: "#/win/a",
        width: 1000,
        height: 750,
        backgroundColor: "#f9f9f9",
        resizable: true,
        modal: true,
        maximize: true,
      });
    },
    openB() {
      windowCreate({
        title: "关于页面",
        route: "#/win/b?id=13",
        width: 750,
        height: 450,
        backgroundColor: "#f90",
        resizable: false,
      });
    },
  },
};
</script>

<style></style>
